<%@page import="com.etc.zzsys.entity.Users"%>
<%@page import="java.util.List"%>
<%@page import="com.zzsys.dao.impl.UsersDaoImpl"%>
<%@page import="com.zzsys.dao.UsersDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">

<title>Dashboard Template for Bootstrap</title>

<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">


<!-- Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">


</head>

<body>
<!-- include 指令 包含 ->静态包含
   将session.jsp的代码和当前的jsp文件 翻译成一个[合并在一起].java[servlet]的源文件
   ,再去编译
 --><%-- 
<%@ include file="session.jsp" %> --%>

<!-- 动作来 包含 ,动态包含 session.jsp先翻译,当前的jsp文件先翻译成一个.java ,然后在合并.
    如果我们的代码中包含了跳转例如: response.sendRedirect,则不能使用动态包含.

 -->
<%-- <jsp:include page="session.jsp"></jsp:include> --%>
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#navbar" aria-expanded="false"
					aria-controls="navbar">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">Project name</a>
			</div>
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#">Dashboard</a></li>
					<li><a href="#">Settings</a></li>
					<li><a href="#">Profile</a></li>
					<li><a href="#">Help</a></li>
				</ul>
				<form class="navbar-form navbar-right">
					<input type="text" class="form-control" placeholder="Search...">
				</form>
			</div>
		</div>
	</nav>

	<div class="container-fluid">
		<div class="row">
			<div class="col-sm-3 col-md-2 sidebar">
				<ul class="nav nav-sidebar">
					<li><a href="homepage.jsp">首页 <span class="sr-only">(current)</span></a></li>
					<li><a href="us2">用户列表</a></li>
					<li class="active"><a href="useradd.jsp">增加用户</a></li>
					<li><a href="us2?op=queryBypage">用户列表[JSTL]</a></li>
				</ul>
				<ul class="nav nav-sidebar">
					<li><a href="">Nav item</a></li>
					<li><a href="">Nav item again</a></li>
					<li><a href="">One more nav</a></li>
					<li><a href="">Another nav item</a></li>
					<li><a href="">More navigation</a></li>
				</ul>
				<ul class="nav nav-sidebar">
					<li><a href="">Nav item again</a></li>
					<li><a href="">One more nav</a></li>
					<li><a href="">Another nav item</a></li>
				</ul>
			</div>
			<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
				<h2 class="sub-header">添加用户</h2>

				<form class="form-horizontal" action="us2" method="post">
					<div class="form-group">
						<label for="username" class="col-sm-2 control-label">用户名</label>
						<div class="col-sm-6">
							<input type="text" class="form-control" id="inputEmail3"
								placeholder="请输入用户名" required="required" name="userName">
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">密码</label>
						<div class="col-sm-6">
							<input type="password" class="form-control" id="userPwd"
								placeholder="请输入密码"  required="required" name="userPwd">
						</div>
					</div>
					
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">性别</label>
						<div class="col-sm-2">
							<select class="form-control" name="userSex">
							   <option value="男">男</option>
							   <option value="女">女</option>
							</select>
						</div>
					</div>
					
					
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">电话号码</label>
						<div class="col-sm-6">
							<input type="text" class="form-control" id="userTel"
								placeholder="请输入电话号码"  required="required" name="userTel">
						</div>
					</div>
					
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">用户地址</label>
						<div class="col-sm-6">
							<input type="text" class="form-control" id="userAddress"
								placeholder="请输入地址"   name="userAddress">
						</div>
					</div>
					
					
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">用户等级</label>
						<div class="col-sm-2">
							<select class="form-control" name="userLevel">
							   <option value="1">普通用户</option>
							   <option value="0">管理员</option>
							</select>
						</div>
					</div>
					
					
					
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
						<input type="hidden" name="op" value="add"> 
							<button type="submit" class="btn btn-success">添加</button>
						</div>
					</div>
				</form>


			</div>
		</div>
	</div>

</body>
</html>
